//
//  HRChooseAddressTableHead.m
//  haierapp
//
//  Created by Xia Zhiyong on 14-8-26.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "HRChooseAddressTableHead.h"

@implementation HRChooseAddressTableHead

-(id)init{
    self = [[[NSBundle mainBundle] loadNibNamed:@"HRChooseAddressTableHead"
                                          owner:self
                                        options:nil] objectAtIndex:0];
    return self;
    
}



- (IBAction)actionBtn:(id)sender {
    UIButton *btn = (UIButton*)sender;
    if (btn.tag == 1001) {   //选择地址
        if (!btn.selected) {
            btn.selected = YES;
            if (_btnClicked) {
                _btnClicked(0);
            }
        }
    }else{
        if (_btnClicked) {
            _btnClicked(1);
        }
    }
}
@end
